package com.database.controller;

import com.database.bean.Historys;
import com.database.bean.Tel;
import com.database.service.HistorysService;
import com.database.service.TelService;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
public class TelController {
    final
    TelService telService;

    public TelController(TelService telService) {
        this.telService = telService;

    }
    @GetMapping(value = "/tel")
    public Tel getTelById(){
        return new Tel();
    }
    @GetMapping(value = "/tel/{id}")
    public Tel getTelById(@PathVariable Long id){
        return telService.getTelById(id);
    }

}
